package com.zpark.blog.servlet;


// 编辑已有文章

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/blog_edit")
public class EditArticleServlet extends HttpServlet {
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        // 设置响应内容类型
        response.setContentType("text/html;charset=UTF-8");

        // 转发到blog_edit.jsp页面
        request.getRequestDispatcher("/WEB-INF/views/blog_edit.jsp").forward(request, response);
    }
}
